package com.example.springbootdemo.utils;

import java.util.HashSet;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @ClassName: Test1
 * @Description:
 * @Author: TXW
 * @Date: 2023-12-04
 */

public class Test1 {
    public static void main(String[] args) {
        String nameOrJobNum = "测试11";
        String name = "^[\\u4e00-\\u9fa5]{0,}$";

        Pattern r = Pattern.compile("[\u4e00-\u9fa5]");
        boolean find = r.matcher(nameOrJobNum).find();
//        System.out.println(find);
        int i = 0;
        System.out.println(String.valueOf(++i));
    }


}
